package com.kkyy.mymusic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kkyy.mymusic.dao.UsersDao;
import com.kkyy.mymusic.entity.UsersEntity;
import com.kkyy.mymusic.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UsersServiceImpl extends ServiceImpl<UsersDao, UsersEntity> implements UsersService {
    @Autowired
    UsersDao usersDao;

    @Override
    public UsersEntity getUserByUsername(String username) {
        return usersDao.getUserByUsername(username);
    }

    @Override
    public void insertUsers(String username, String password) {
        usersDao.insertUsers(username, password);
    }
}